package com.fast.server.entity.constants;

public class Constants {

    //用户状态
    public static final Integer DISABLE = 0;// "禁用"
    public static final Integer ENABLE = 1;// "启用"

    //验证码
    public static final String CHECK_CODE_KEY = "check-code-key";
    public static final String CHECK_CODE_KEY_EMAIL = "check-code-key-email";

    //验证码状态
    public static final Integer ZERO = 0;
    public static final Integer ONE = 1;

    //验证码生成位数
    public static final Integer RANK_5 = 5;

    //userID生成的位数
    public static final Integer RANK_10 = 10;
    //userID生成的位数
    public static final Integer RANK_15 = 15;


    /**
     * redis key 相关
     */

    //过期时间 1分钟
    public static final Integer REDIS_KEY_EXPIRES_ONE_MIN = 60;

    //过期时间 1天
    public static final Integer REDIS_KEY_EXPIRES_DAY = REDIS_KEY_EXPIRES_ONE_MIN * 60 * 24;

    public static final Integer REDIS_KEY_EXPIRES_ONE_HOUR = REDIS_KEY_EXPIRES_ONE_MIN * 60;

    /**
     * 过期时间5分钟
     */
    public static final Integer REDIS_KEY_EXPIRES_FIVE_MIN = REDIS_KEY_EXPIRES_ONE_MIN * 5;


    public static final Long MB = 1024 * 1024L;

    public static final String REDIS_KEY_DOWNLOAD = "cloud:download:";
    public static final String REDIS_KEY_SYS_SETTING = "cloud:syssetting:";

    public static final String REDIS_KEY_USER_SPACE_USE = "cloud:user:spaceuse:";

    public static final String REDIS_KEY_USER_FILE_TEMP_SIZE = "cloud:user:file:temp:";

    //登录

    public static final String SESSION_KEY = "session_key";

    public static final String SESSION_SHARE_KEY = "session_share_key_";
}
